/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.maternity.classes.dao;

/**
 *
 * @author Aluno
 */
public class GenericDAOField{
	private String databaseFieldName;
	private String setFunctionName;
	private String getFunctionName;
	private boolean isPrimaryKey;
	private GenericDAOFieldPrimaryKey primaryKeyMode;
	private Class fieldType;

	public GenericDAOField(String _databaseFieldName, String _setFunctionName, String _getFunctionName, Class _fieldType){
		databaseFieldName = _databaseFieldName;
		isPrimaryKey = false;
		primaryKeyMode = GenericDAOFieldPrimaryKey.NOTHING;
		setFunctionName = _setFunctionName;
		getFunctionName = _getFunctionName;
		fieldType = _fieldType;
	}

	public GenericDAOField(String _databaseFieldName, String _setFunctionName, String _getFunctionName, Class _fieldType, boolean _isPrimaryKey, GenericDAOFieldPrimaryKey _primaryKeyMode){
		databaseFieldName = _databaseFieldName;
		isPrimaryKey = _isPrimaryKey;
		primaryKeyMode = _primaryKeyMode;
		setFunctionName = _setFunctionName;
		getFunctionName = _getFunctionName;
		fieldType = _fieldType;
	}

	public String getDatabaseFieldName(){
		return databaseFieldName;
	}

	public boolean isPrimaryKey(){
		return this.isPrimaryKey;
	}

	public GenericDAOFieldPrimaryKey getPrimaryKeyMode(){
		return primaryKeyMode;
	}

	public String getSetFunctionName(){
		return setFunctionName;
	}


	public String getGetFunctionName(){
		return getFunctionName;
	}

	public Class getFieldType(){
		return fieldType;
	}
}